/*
<Copyright (C) 2011 Dru Moore>

This file is part of demorecorder.

vlc-remote is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

demorecorder is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with demorecorder.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TRACKLISTMODEL_H
#define TRACKLISTMODEL_H

#include <QAbstractListModel>
#include "tracklistitem.h"

class TrackListModel : public QAbstractListModel
{
    Q_OBJECT
public:
    explicit TrackListModel(QObject *parent = 0);

    enum TrackListRoles {
        UidRole = Qt::UserRole + 1,
        TitleRole,
        IconRole,
        ColorRole,
        IsMutedRole,
        IsActiveRole
    };

    void addTrackListItem(TrackListItem item);


    int rowCount(const QModelIndex &parent) const;
    int rowCount() const;
    QVariant data(const QModelIndex &index, int role) const;
    bool setData(const QModelIndex &index, const QVariant &value, int role);

signals:

public slots:

private:
    QList<TrackListItem> *trackListItemList;

};

#endif // TRACKLISTMODEL_H
